<meta meta="用户代理配置" args="data"/>
<style>

</style>
<form class="form-horizontal" id="form" s="form,datac,nda,valid" s-data="data" style="width: 600px;">
    <div class="form-group">
        <label class="col-sm-3 control-label">超级会员会员所需邀请数</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" min="1" class="form-control" name="inviteUserNumForSuperLevel" placeholder="超级会员升级所需邀请数"
                   s-valid-error="require(),min(1)"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">PLUS会员月费</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" class="form-control" name="monthlyFeeForPlusLevel" placeholder="PLUS会员年费"
                   s-valid-error="require(),number()"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">PLUS会员年费</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" class="form-control" name="annualFeeForPlusLevel" placeholder="PLUS会员年费"
                   s-valid-error="require(),number()"/>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-3 control-label">开启PLUS会员年费分配</label>
        <div class="col-sm-9">
            <label class="s-checkbox-switch">
                <input autocomplete="off" type="checkbox" name="plusUpgradeFeeAllocation" value="true" />
                <span class="s-checkbox-indicator"></span>
            </label>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">直属PLUS会员分配金额</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" class="form-control" name="directSuperAllotFee" placeholder="直属PLUS会员分配金额"
                   s-valid-error="require(),number()"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">间属PLUS会员分配金额</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" class="form-control" name="indirectSuperAllotFee" placeholder="直属PLUS会员分配金额"
                   s-valid-error="require(),number()"/>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">代理分配金额</label>
        <div class="col-sm-9">
            <input autocomplete="off" type="number" class="form-control" name="agentAllotFee" placeholder="代理分配金额"
                   s-valid-error="require(),number()"/>
        </div>
    </div>
</form>
<script type="text/javascript">
    S.getContent = function () {
        var deferred = $.Deferred();
        $form.validate().done(function() {
            deferred.resolve(Smart.serializeToObject($form.node))
        })
        return deferred;
    }
</script>